package com.tuozixuan.spring6.resources;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.core.io.Resource;

public class Demo3 {

	public static void main(String[] args) {
		ApplicationContext ctx = new FileSystemXmlApplicationContext();
		Resource res = ctx.getResource("calsspath:note-classpath.txt");
		Resource res2 = ctx.getResource("file:bean.xml");
		Resource res3 = ctx.getResource("http://localhost:8080/beans.xml");
		System.out.println(res.getFilename());
	}
}
